#!/usr/bin/env bash
# Copyright (c) 2020 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(micro)
pkgdesc="Modern and intuitive terminal-based text editor"
url=https://micro-editor.github.io/
pkgver=2.0.14-1
timestamp=2024-08-27T18:13:07Z
section="utils"
maintainer="Eeems <eeems@eeems.email>"
license=MIT

source=("https://github.com/zyedidia/micro/releases/download/v2.0.14/micro-2.0.14-linux-arm.tar.gz")
sha256sums=(9f490d88bd30a548af99a905f50244dc6c80f3c7a3c6f98faeb5b0a7329f7dea)

package() {
    install -Dm644 "$srcdir"/LICENSE "$pkgdir/opt/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 "$srcdir"/LICENSE-THIRD-PARTY "$pkgdir/opt/usr/share/licenses/$pkgname/LICENSE-THIRD-PARTY"
    install -Dm644 "$srcdir"/micro.1 "$pkgdir/opt/share/man/man1/micro.1"
    install -Dm744 "$srcdir"/micro "$pkgdir/opt/bin/micro"
}
